package com.cloud.event;

import org.springframework.context.ApplicationEvent;


public class MsgEvent extends ApplicationEvent {
    // 手机号码
    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWeChatOpenId() {
        return weChatOpenId;
    }

    public void setWeChatOpenId(String weChatOpenId) {
        this.weChatOpenId = weChatOpenId;
    }

    public String getDingDingOpenId() {
        return dingDingOpenId;
    }

    public void setDingDingOpenId(String dingDingOpenId) {
        this.dingDingOpenId = dingDingOpenId;
    }

    // 邮件
    private String email;
    // 微信openid
    private String weChatOpenId;
    /**
     * 钉钉openid
     */
    private String dingDingOpenId;

    public MsgEvent(Object source, String phone, String email, String weChatOpenId, String dingDingOpenId) {
        super(source);
        this.phone = phone;
        this.email = email;
        this.weChatOpenId = weChatOpenId;
        this.dingDingOpenId = dingDingOpenId;
    }

    @Override
    public String toString() {
        return "MsgEntity{" +
                "phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", weChatOpenId='" + weChatOpenId + '\'' +
                ", dingDingOpenId='" + dingDingOpenId + '\'' +
                '}';
    }
}